<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

</head>

<body>
    <div id="player">
        <table border="2">
            <tr>
                <th>
                    <input type="text" v-model="search" @keyup.enter="searchMusic">
                </th>
            </tr>
            <tr style="width: 1600px;height: 1000px;">
                <th style="width: 30%">
                    <ul>
                        <li v-for="item in musicList">
                            <a href="#" @click='play(item)'>△</a>
                            {{item.name}}
                            <a href="#" v-if="item.mvid!=0" @click="playMv(item.mvid)"> mv</a>
                        </li>
                    </ul>
                    
                </th>
                <th style="width: 30%">
                    <video :src="mvUrl" controls="controls"></video>
                    <img :src="musicImg" alt="" style="width: 300px">
                </th>
                <th style="width: 30%">
                    <ul>
                        <li v-for="item in musicTalks">
                                <img :src="item.user.avatarUrl" alt="" style="width:30px">
                            <h2>{{item.user.nickname}}</h2>
                            <span>{{item.content}}</span>
                            <hr border="1">
                        </li>
                       
                    </ul>
                </th>
            </tr>
            <tr>
                <audio :src="musicSrc"   autoplay></audio>
            </tr>
        </table>
    </div>

    <script src="js/music.js"></script>
</body>

</html>